package com.quanjiaolian.tools;

public class PageRoll {
	
	//当前页
	private Integer currPage = 1;
	//总页数
	private Integer countPage;
	//每页记录数
	private Integer pageSize = 5;
	//总记录数
	private Integer countSize;

	public Integer getCurrPage() {
		return currPage;
	}

	public void setCurrPage(Integer currPage) {
		this.currPage = currPage;
	}

	public Integer getCountPage() {
		
		if(countSize!=0){
			if(countSize%pageSize!=0){
				countPage = countSize/pageSize +1;
			}else{
				countPage = countSize/pageSize;
			}
		}
		return countPage;
	}

	public void setCountPage(Integer countPage) {
		this.countPage = countPage;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getCountSize() {
		return countSize;
	}

	public void setCountSize(Integer countSize) {
		this.countSize = countSize;
	}
}
